package com.dtease.agent.core.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
* @description 错误响应
* @author chentl
* @class ErrorResponse
* @package com.dtease.agent.exception
* @since 2025/5/15 09:55
*/
@NoArgsConstructor
@Data
public  class ErrorResponse {
        private int status;
        private String message;
        private Map<String, String> errors;
        private long timestamp;

        public ErrorResponse(int status, String message, Map<String, String> errors, long timestamp) {
            this.status = status;
            this.message = message;
            this.errors = errors;
            this.timestamp = timestamp;
        }

    }